public class DbUpdater {
	public static void main(String[] args) {
		String ssh_user = "marshpro";//"marshc4";
		String ssh_password = "@Ignistica15";//"zq3g7u.9";
		String ssh_host = "74.220.207.182";//"128.113.91.227";
		int ssh_port = 22;
		
		String ssh_command = "mysql -h localhost -u marshpro_marsh -pmarshc3793 marshpro_math < sql_file.sql";
		
		SshHandler sshHandler = new SshHandler();
		System.out.println("Establishing SSH session...");
		sshHandler.initSession(ssh_user, ssh_password, ssh_host, ssh_port);
		System.out.println("SSH session has been established.");
		System.out.println("Executing command over SSH...");
		SshHandler.ExecResult result = sshHandler.execCommand(ssh_command);
		System.out.println("Command execution complete.");
		System.out.println("Return Value: " + result.returnValue);
		System.out.println("Output: " + result.output);
		System.out.println("Disconnecting SSH session...");
		sshHandler.disconnectSession();
		System.out.println("SSH session has been disconnected.");
	}
}